import React from 'react';
import {HashRouter,Switch,Route} from 'react-router-dom'
import Home from './components/Home'
import Login from './components/login'
import Logon from './components/logon'
class Router extends React.Component{
    // constructor(props){
    //     super(props)
    // }

    render(){
        return(
            <div>
                <HashRouter>
                    <Switch>
                    <Route path="/login" component={Login} />
                    <Route path="/logon" component={Logon} />
                    <Route path='/' component={Home} />
                    </Switch>
                </HashRouter>
            </div>
        );
    }

}

export default Router;